#ifndef DATAANALSISBYJTHREAD_H
#define DATAANALSISBYJTHREAD_H
#include <QObject>
#include <QThread>
#include <CommonHelper.h>
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include <QVariant>
#include <QSqlRecord>
#include "derivedata.h"
#include <qpcrModel.h>

class DataAnalysisByJThread : public QObject
{
    Q_OBJECT;
public:
    explicit DataAnalysisByJThread(QObject *parent = nullptr);

public slots:
    void run();

private:
    void analyseAndSaveData(QVector<QPointF> ying,QString sampleId,QString accessType);
    QString GetDateString(int val);

private:
    QString neiAccess;
    Analyse *analyseClient;
    QThread thread;
    CommonHelper* commonClient;
    derivedata *derivedata1;
    void bjpc();
};
#endif // DATAANALSISBYJTHREAD_H
